<markdown>
# 虚拟滚动

使用 `virtual-scroll` 启用虚拟滚动
</markdown>

<template>
  <x-space vertical style="max-width: 350px">
    <x-select v-model:value="value1" :options="options" filterable virtual-scroll />
    <x-select v-model:value="value2" :options="options" multiple filterable virtual-scroll />
  </x-space>
</template>

<script setup>
import { ref } from 'vue'

const value1 = ref(1)
const value2 = ref([1, 3])

const options = [...Array(1000)].map((_, i) => ({
  label: String(i),
  value: i
}))
</script>
